package com.gp.node;

import com.stock.StockData;

public class OpenPrice extends IValue {

	private static final long serialVersionUID = 1729283215117020681L;

	@Override
	public double getValue(StockData stock) {
		return stock.getOpenPrice();
	}
	
	@Override
	public INode createNew()  {
		return new OpenPrice();
	}

	@Override
	public INode copy() {
		return new OpenPrice();
	}
	
	@Override
	public String print(StockData stock) {
		return String.valueOf(stock.getOpenPrice());
	}
	
	@Override
	public String print() {
		return " OpenPrice ";
	}

	
}
